<%@ page import="bean.novelBean" %><%--
  Created by IntelliJ IDEA.
  User: tao
  Date: 2022/6/3
  Time: 18:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
	<title>Title</title>
	<style>
		body {
			background-color: #eee;
			transition: background-color .25s ease;
			overflow-x: hidden;
		}
		body.dragged {
			background-color: #ccf;
		}
		#container {
			padding: 5em 1em 5em 1em;
			font-family: '微软雅黑' !important;
			margin: auto;
			font-size: 18px;
			width:600px;
			min-height: 100%;
			background-color: white;
			box-shadow: 0 0 25px rgba(0,0,0,.25);
		}

		#container>p {
			min-height: 1em;
		}
		#form{
			/* 给父盒子添加flex布局 */
			display: flex;
			/* 主轴方向 垂直 从上往下 y轴 */
			flex-direction: column;
			/* 主轴居中 */
			justify-content: center;
			/* 侧轴居中 */
			align-items: center;
		}
		#image{
			display: flex;
			/* 主轴方向 垂直 从上往下 y轴 */
			flex-direction: column;
			/* 主轴居中 */
			justify-content: center;
			/* 侧轴居中 */
			align-items: center;
		}
	</style>
	<style id="js-style">
		#container>p {
			margin-bottom: 1em;
			text-indent: 2em;
		}
	</style>
	<style>
		A:visited{TEXT-DECORATION:none;COLOR:black}
		A:link{text-decoration:none}
	</style>
</head>
<body>
<%
	novelBean novel= (novelBean) session.getAttribute("novel");
	if(novel.getNovelIntroduce()==null || novel.getNovelIntroduce().equals("null"))
		novel.setNovelIntroduce("暂无介绍");
%>
<%@ include file="./header.jsp" %>
<form action="" method="get" id="form">
	<span style="letter-spacing: 5px"><bt>《<%= novel.getNovelName() %>》</bt></span>
	<br>
	<table width="900" align="center" class="table_border table_padding10">
		<a href="novelShowServlet?novelNumber=<%= novel.getNovelNumber() %>&opt=next" title="<%= novel.getNovelName() %>">
			<div id="container">
				<div id="image">
					<img src="novelImage/<%= novel.getNovelImage() %>">
					<br>
					<br>
					<br>
					<p><%= novel.getNovelIntroduce() %></p>
				</div>

			</div>
		</a>
	</table>

</form>

<%@ include file="./footer.jsp" %>
</body>
</html>
